/**
 * Project Name:mauto-web
 * File Name:JyEnterpriseBizImpl.java
 * Package Name:com.mingsoft.company.biz.impl
 * Date:2017年6月13日下午3:03:08
 * Copyright (c) 2017, inf-technology Co., Ltd. All Rights Reserved.
 *
*/

package com.inftech.mauto.jy.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.inftech.mauto.jy.dao.JyEnterpriseDao;
import com.inftech.mauto.jy.entity.JyEnterprise;
import com.inftech.mauto.jy.service.JyEnterpriseService;
/**
 * ClassName:JyEnterpriseBizImpl <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Date: 2017年6月13日 下午3:03:08 <br/>
 * 
 * @author Administrator
 * @version
 * @since JDK 1.7
 */
@Service(value = "jyEnterpriseBizImpl")
public class JyEnterpriseServiceImpl implements JyEnterpriseService {
	@Resource
	private JyEnterpriseDao jyEnterpriseDao; 
	
	/**
	 * 
	 * TODO 获取企业列表关联技师表（可选）.
	 * @see com.inftech.mauto.jy.service.JyEnterpriseService#getJyEnterpriseList(java.util.Map)
	 */
	@Override
	public List<JyEnterprise> getJyEnterpriseList(Map<String,Object> map) {
//		PageHelper helper = new PageHelper();
//		helper.startPage(Integer.parseInt(map.get("pageNum").toString()), Integer.parseInt(map.get("pageSize").toString()));
		return jyEnterpriseDao.getJyEnterpriseList(map.get("enterpriseName").toString());
	}

	/**
	 * 
	 * TODO 获取企业列表总数关联技师表（可选）.
	 * @see com.inftech.mauto.jy.service.JyEnterpriseService#getJyEnterpriseListCount(java.lang.String)
	 */
	@Override
	public int getJyEnterpriseListCount(String enterpriseName) {
		
		
		return jyEnterpriseDao.getJyEnterpriseListCount(enterpriseName);
	}

	/**
	 * 
	 * TODO 获取企业信息（可选）.
	 * @see com.inftech.mauto.jy.service.JyEnterpriseService#getJyEnterpriseList1()
	 */
	@Override
	public List<JyEnterprise> getJyEnterpriseList1() {
		
		return jyEnterpriseDao.getJyEnterpriseList1();
	}

	/**
	 * 
	 * TODO 新增企业（可选）.
	 * @see com.inftech.mauto.jy.service.JyEnterpriseService#save(java.util.Map)
	 */
	@Override
	public void save(Map<String, Object> map) {
		
		jyEnterpriseDao.save(map);
	}

	/**
	 * 
	 * TODO 删除企业（可选）.
	 * @see com.inftech.mauto.jy.service.JyEnterpriseService#deleteAll(java.util.List)
	 */
	@Override
	public int deleteAll(List<String> list) {
	
		return jyEnterpriseDao.deleteAll(list);
	}

}
